css: Don't reorder some selectors when building selector tree
authorAlexander Larsson <alexl@redhat.com>
Thu, 29 Nov 2012 13:21:20 +0000 (14:21 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 30 Nov 2012 13:53:30 +0000 (14:53 +0100)
commitd6932dd8235019fe3c44ff58ff9789b7e64424d2
treebe83990a70221ea8d46a3947310c8e958675ec9e
parent63cb467e0603b8ca0e562cd67068dca007af4415
css: Don't reorder some selectors when building selector tree

When building the tree we generally reorder the selectors inside
the same simple selector in order to pick a good first selector
to balance the tree better. However, some kinds of selectors
can't really be reordered, even thought they are simple.

This is since the matching code for some types handle
the existance of a directly preceeding selector differently:

 REGION and ANY selectors look for a DESCENDANT previous
 POSITION selector look for a REGION previous
gtk/gtkcssselector.c